package cn.changeforyou.tcpIp.analysis.demo.protocol.gbt32960_3;

import cn.changeforyou.tcpIp.analysis.demo.protocol.gbt32960_3.enums.Command_Sign;
import cn.changeforyou.tcpIp.analysis.demo.protocol.gbt32960_3.enums.Response_Sign;

/**
 * 协议整体封装
 *
 * @author zhyu
 * @date 2020/8/7 11:18
 */

public class BusUploadProtocol {

    private Command_Sign command_command_sign;

    private Response_Sign command_response_sign;

    private String vin;

    private Encryption_scheme encryption_scheme;

    private Short data_unit_length;

    private String check_code;

    private Object dataUnit;

    private char[] dataUnitChars;

    public char[] getDataUnitChars() {
        return dataUnitChars;
    }

    public void setDataUnitChars(char[] dataUnitChars) {
        this.dataUnitChars = dataUnitChars;
    }

    public Command_Sign getCommand_command_sign() {
        return command_command_sign;
    }

    public void setCommand_command_sign(Command_Sign command_command_sign) {
        this.command_command_sign = command_command_sign;
    }

    public Object getDataUnit() {
        return dataUnit;
    }

    public void setDataUnit(Object dataUnit) {
        this.dataUnit = dataUnit;
    }

    public Response_Sign getCommand_response_sign() {
        return command_response_sign;
    }

    public void setCommand_response_sign(Response_Sign command_response_sign) {
        this.command_response_sign = command_response_sign;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public Encryption_scheme getEncryption_scheme() {
        return encryption_scheme;
    }

    public void setEncryption_scheme(Encryption_scheme encryption_scheme) {
        this.encryption_scheme = encryption_scheme;
    }

    public Short getData_unit_length() {
        return data_unit_length;
    }

    public void setData_unit_length(Short data_unit_length) {
        this.data_unit_length = data_unit_length;
    }

    public String getCheck_code() {
        return check_code;
    }

    public void setCheck_code(String check_code) {
        this.check_code = check_code;
    }

    @Override
    public String toString() {
        return "BusUploadProtocol{" +
            "command_command_sign=" + command_command_sign +
            ", command_response_sign=" + command_response_sign +
            ", vin='" + vin + '\'' +
            ", encryption_scheme=" + encryption_scheme +
            ", data_unit_length=" + data_unit_length +
            ", check_code='" + check_code + '\'' +
            ", dataUnit=" + dataUnit +
            '}';
    }
}
